QT             += core gui xml network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE        = lib
CONFIG         += plugin
CONFIG         -= staticlib
INCLUDEPATH    += ../abhidhaana
HEADERS         = qqdict.h json.h 
SOURCES         = qqdict.cpp json.cpp
TARGET          = $$qtLibraryTarget(qqdict)
macx {
    DESTDIR         = ../dist/abhidhaana.app/Contents/MacOS/plugins
} else {
    DESTDIR         = ../dist/plugins
}
RESOURCES       += resource.qrc

OTHER_FILES     += qqdict.json

unix {
  isEmpty(PREFIX) {
    PREFIX = /usr
  }
  BINDIR = $$PREFIX/share/abhidhaana
  DATADIR =$$PREFIX/share

  #MAKE INSTALL

  INSTALLS += target

  target.path =$$BINDIR/plugins
}

